package com.jiehong.mybatisplus;


/**
 * 查询条件封装类
 * 
 * @author chen
 *
 */
public class Condition {

	public Condition(String condition, String fileName, Object parameters) {
		this.fileName = fileName;
		this.parameters = parameters;
		this.condition = condition;
	}

	public Condition(String condition, String fileName, Object parameters, int level) {
		this.fileName = fileName;
		this.parameters = parameters;
		this.condition = condition;
		this.level = level;
	}

	public Condition(String condition, String fileName, Object parameters, boolean isOr) {
		this.fileName = fileName;
		this.parameters = parameters;
		this.condition = condition;
		this.isOr = isOr;
	}

	public Condition(String condition, String fileName, Object parameters, int level, boolean isOr) {
		this.fileName = fileName;
		this.parameters = parameters;
		this.condition = condition;
		this.level = level;
		this.isOr = isOr;
	}

	/**
	 * 字段名
	 */
	private String fileName;
	/**
	 * 参数
	 */
	private Object parameters;

	/**
	 * 条件
	 */
	private String condition;

	/**
	 * or 或者 and
	 */
	private boolean isOr;

	/**
	 * 级别
	 */
	private int level = 1;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Object getParameters() {
		return parameters;
	}

	public void setParameters(Object parameters) {
		this.parameters = parameters;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public boolean isOr() {
		return isOr;
	}

	public void setOr(boolean isOr) {
		this.isOr = isOr;
	}

}
